// JORGE FERNANDO GOMEZ
// 1259371
// 189631
// LEC A1
// MARTIN MÜLLER
// D02
// YANG LIU


#ifndef READ_H
#define READ_H 1

#define MAXLEN 256

#include <string.h>

#include "memwatch.h"
#include "util.h"

/* Struct to store lines from an input file
 * and their type. */
typedef struct {

    char lineString[MAXLEN+1];

    int commandType;
    enum { FIGURE, DRAW, END, PRINTFIGURE,
           DRAWFIGURE, TRANSLATE, CHILD,
           COMMENT, BLANK, ROTATE
    } enumKeywords;

} Line;


extern int inputFileLength;

/* FUNCTION PROTOTYPES. */

/* Reads inputFile stream and stores lines sequentially in Lines. */
int readFile ( Line * Lines, FILE * inputFile );

#endif /* end of include guard: READ_H */
